package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.ChatterFactorDao;
import com.kly.user.db.entity.ChatterFactorEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;

/**
* User: user
* Date: 2024-03-08
* Time: 13:44:55.070
*/

@Repository
public class ChatterFactorDaoImpl extends AbstractBaseMapper<ChatterFactorEntity> implements ChatterFactorDao {

    @Override
    public ChatterFactorEntity getFactorValue(Integer paramType, Integer factorType, Integer chatterType) {
        final HashMap<String, Object> params = Maps.newHashMap();
        params.put("paramType", paramType);
        params.put("factorType", factorType);
        params.put("chatterType", chatterType);
        return this.getSqlSession().selectOne(this.getStatement("getFactorValue"), params);
    }
}